﻿@model IPagedList<CarSales.Models.Car>

@{
    ViewBag.Title = "Index";
}
@Html.PagedListPager(Model, page => Url.Action("Index", new { page, pagesize = String.IsNullOrEmpty(Request["pagesize"]) == false ? int.Parse(Request["pagesize"]) : 10}))
@Html.Partial("_CarList", Model)
@Html.PagedListPager(Model, page => Url.Action("Index", new { page, pagesize = string.IsNullOrEmpty( Request["pagesize"]) == false ? int.Parse(Request["pagesize"]) : 10}))
